package com.yjz.leetcode.二叉树学习.二三四树;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author :yuanJinZhong
 * @description: 2-3-4 树 数据项类,数据项类需要实现{@link Comparable} 接口
 * @date :2018/12/2-10:26
 */
@AllArgsConstructor
@Data
public class DataItem<T extends Comparable<? extends T>> {

  private T data;

  public void display() {
    System.out.println("/" + data);
  }

}
